/* 改变主题色变量 */
$--color-primary: #1AD1B0;

/* 改变 icon 字体路径变量，必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts';
@import '~element-ui/packages/theme-chalk/src/index';

//DINAlternateBold
@font-face {
  font-family: 'DINAlternateBold';
  src: url('../fonts/DINAlternateBold.ttf') format('truetype');
}

//DINAlternateBold
@font-face {
  font-family: 'DINCondensed-Bold';
  src: url('../fonts/DINCondensed-Bold.ttf') format('truetype');
}

//Alimama_ShuHeiTi_Bold
@font-face {
  font-family: 'Alimama ShuHeiTi';
  src: url('../fonts/Alimama_ShuHeiTi_Bold.ttf') format('truetype');
}
//PangMenZhengDao
@font-face {
  font-family: 'PangMenZhengDao';
  src: url('../fonts/PangMenZhengDao.ttf') format('truetype');
}

//DINCond-Bold
@font-face {
  font-family: 'DINCond-Bold';
  src: url('../fonts/DINCond-Bold.otf');
}

//DINAlternateBold
@font-face {
  font-family: 'YouSheBiaoTiHei';
  src: url('../fonts/YouSheBiaoTiHei.ttf') format('truetype');
}

//ShiShangZhongHeiJianTi
@font-face {
  font-family: 'ShiShangZhongHeiJianTi';
  src: url('../fonts/ShiShangZhongHeiJianTi.ttf') format('truetype');
}
html {
  box-sizing: border-box;
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: PingFangSC-Medium, PingFang SC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  height: 100%;
}
.el-image-viewer__wrapper {
  z-index: 999999999!important;
}
.el-popover {
  padding: 0;
}

/* 定义滚动条宽高及背景，宽高分别对应横竖滚动条的尺寸 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/*定义滚动条的轨道，内阴影及圆角*/
::-webkit-scrollbar-track {
  background-color: #122F5F;
}

/*定义滑块，内阴影及圆角*/
::-webkit-scrollbar-thumb {
  height: 8px;
  background-color: #4EA4F5;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(78, 164, 245, 0.3);
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.ml20 {
  margin-left: 20px;
}
.text-center {
  text-align: center;
}
.c-default {
  color: $--color-primary !important;
}

.c-red {
  color: #FF0000 !important;
}

.c-yellow {
  color: #FF8900 !important;
}

.c-dark {
  color: #333333 !important;
}

.c-gray {
  color: #898989 !important;
}

.c-green {
  color: #52C41A !important;
}

.bg-yellow {
  color: #ffffff !important;
  background-color: #FFC117 !important;
}

.bg-green {
  color: #ffffff !important;
  background-color: #52C41A !important;
}

.bg-gray {
  color: #ffffff !important;
  background-color: #888888 !important;
}

// 天地图左下角标识说明隐藏
.tdt-control-copyright {
  display: none;
}

//svg图表基础样式
.global-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
  overflow: hidden;
}

//表格中，type=text的el-botton padding值设为0
.global-table {
  width: 100%;
  border: 1px solid #eaeef5;
  border-width: 1px 1px 0 1px;
  .gutter {
    background-color: rgb(244, 247, 250);
  }
  .el-table__header th {
    color: #000;
    background-color: #f4f7fa;
  }
  .el-button--text {
    padding: 0px;
  }
}

.global-add-form {
  .el-input,
  .el-input-number,
  .el-select,
  .el-date-editor {
    width: 380px;
  }
  .el-textarea,
  .el-table {
    width: 500px;
  }
}
textarea {
  font-family: PingFangSC-Medium, PingFang SC;
}
.el-pagination {
  padding: 0;
  margin-top: 20px;
  text-align: right;
}

.el-dialog{
  .el-dialog__header{
    border-bottom: 1px solid #F0F0F0;
  }
  .form-item-btn{
    text-align: center;
    margin-top: 30px;
  }
}

.custom-cascader{
  .el-cascader-node, .el-cascader-node__label{
    width: 200px !important;
  }
}

.custom-dropdown.el-dropdown-menu {
  border: 1px solid #0BB1EE !important;
  box-shadow: 0px 4px 19px 5px rgba(2, 15, 98, 0.06) !important;
  border-radius: 0px !important;
  background-color: rgba(3, 29, 49, 0.9) !important;
  .el-dropdown-menu__item {
    color: #ffffff !important;
    &:hover, &.hover {
      color: #00F0FF !important;
      background: linear-gradient(90deg, #125792 0%, rgba(12, 72, 122, 0) 100%) !important;
    }
  }
  // .el-select-dropdown__selected {
  //   color: #00F0FF !important;
  //   background: linear-gradient(90deg, #125792 0%, rgba(12, 72, 122, 0) 100%) !important;
  // }

  .popper__arrow {
    border-bottom-color: #0BB1EE !important;
    &:after {
      border-bottom-color: rgba(3, 29, 49, 0.9) !important;
    }
  }
}